package com.weilai.service;

import com.github.pagehelper.PageInfo;
import com.weilai.domain.Posts;
import com.weilai.domain.Thought;
import com.weilai.domain.User;
import org.apache.ibatis.annotations.Delete;
import org.springframework.stereotype.Service;

import java.util.List;

public interface FollowersService {
        public List<User> selectFansById(int id);

        public List<User> selectFollowingsById(int id);


        public void followOthers(int followId,int followingId);

        public List<List<Posts>> postsFromMyFollowings(int followerId);

        public boolean isFan(int myId,int userId);

        public boolean isFollowing(int myId,int userId);

        public List<List<Thought>> thoughtsFromMyFollowings(int followerId);

        // 按 userid 删除关注信息
        public void deleteUserById(int userId);

        public void cancelFollow(int followerId,int followingId);

        public PageInfo<Posts> postsFromMyFollowingsWithPaging(int followerId,int pageNum,int pageSize);
}
